package top.kaoshanji.p1ch10b;

/**
 * 代码清单-p1ch10b-91页c：修改后的H2型号悍马模型
 * @author kaoshanji
 * ^_^
 * create time 2025/3/22 9:33
 */
public class HummerH2Model extends HummerModel {

    @Override
    public void start() {
        System.out.println("悍马H2发动...");
    }

    @Override
    public void stop() {
        System.out.println("悍马H2停车...");
    }

    @Override
    public void alarm() {
        System.out.println("悍马H2鸣笛...");
    }

    @Override
    public void engineBoom() {
        System.out.println("悍马H2引擎声音是这样的...");
    }

}
